package com.yanqu.road.entity.log.langyabang;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_lang_ya_case_game", autoSave = true)
public class LogLangYaBangCaseGameFinish {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "")
    private int caseId;
    @FieldTypeAnnotation(desc = "是否成功 1是0否   2为再次游玩失败 3为再次游玩成功")
    private int success;        //1是0否
    @FieldTypeAnnotation(desc = "奖励 只有成功为1有")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogLangYaBangCaseGameFinish(int activityId, long userId, int caseId, int success, String reward, Date logTime) {
        this.activityId = activityId;
        this.userId = userId;
        this.caseId = caseId;
        this.success = success;
        this.reward = reward;
        this.logTime = logTime;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getCaseId() {
        return caseId;
    }

    public void setCaseId(int caseId) {
        this.caseId = caseId;
    }

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
